package com.cictec.middleware.distribute.controller.distribute;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cictec.middleware.commons.utils.Result;
import com.cictec.middleware.commons.utils.ResultUtil;
import com.cictec.middleware.distribute.send.SendHandler;

/**
 * 中间件线路平均速度推送
 * 
 * @author Administrator
 *
 */
@RestController
@RequestMapping(value = "/distribute")
public class MiddlewareAverageSpeedController {

	private static Logger logger = LoggerFactory.getLogger(MiddlewareAverageSpeedController.class);

	/**
	 * 设备上传 调度申请信息处理
	 * 
	 * @return
	 */
	@RequestMapping(value = "/distribute/sendLineAverageSpeedToStomp")
	public Result sendLineAverageSpeedToStomp(@RequestBody Map data) {
		logger.error("【线路平均速度推送】:{}", data);
		SendHandler.sendLineAverageSpeedToStomp(data);
		return ResultUtil.getSuccessResult();
	}
}
